package com.jo.test;

import com.jo.annotation.After;
import com.jo.annotation.Aspect;
import com.jo.annotation.Before;
import com.jo.anotation.MyComponent;

/**
 * @author Jo
 * @date 2018/1/27
 */
@MyComponent
@Aspect
public class OperationAspect {

    @Before(targets = {"dao"})
    @After(targets = {"dao"})
    public void operationBefore(){
        System.out.println("操作前后记录日志");
    }


    public void operationAfter(){
        System.out.println("操作之后记录日志");
    }
}
